<!--
 * @Author: wuzhen
 * @Date: 2020-01-13 13:28:41
 * @LastEditors  : wuzhen
 * @LastEditTime : 2020-01-16 14:59:25
 * @Description: 头部注释
 -->
<template>
  <div id="app">
    <div class="wrap_bg">
      <router-view v-if="isRouterAlive"></router-view>
    </div>
  </div>
</template>
<script>
export default {
  provide () {
    return {
      reload: this.reload
    };
  },
  data () {
    return {
      isRouterAlive: true
    };
  },
  methods: {
    reload () {
      this.isRouterAlive = false;
      this.$nextTick(() => {
        this.isRouterAlive = true;
      });
    }
  }
};
</script>


<style lang="less">
* {
  padding: 0;
  margin: 0;
}
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #343434;
  background: url(~@/assets/bg_img.jpg);
  background-size: cover;
  min-height: 100vh;
}
.wrap_bg {
  min-height: 800px;
  height: 100vh;
  overflow: auto;
}
@import "./assets/css/common.less";
@import "./assets/css/transition.less";
@import "./assets/css/load.less";
</style>
